using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Neovolve.Windows.Forms;
using Neovolve.Windows.Forms.Controls;

namespace RLFtrClc
{
    public partial class CreateFighters : WizardForm
    {
        private string _FighterType;
        private Fighters _fighterGroup;
        private ICalculatedFighter _calculatedFighter;
       
        public CreateFighters(string FighterType)
        {
            InitializeComponent();
            _FighterType = FighterType;
            _fighterGroup = new Fighters();
            createWizard();
        }

        private void createWizard() {
            WizardSplashPage splash = new WizardSplashPage();
 
            switch (_FighterType)
            {
                case "Squadron":
                    splash.Title = "Squadron Creation";
                    splash.Description = "A squadron is a unit of 6 fighters. In the following pages, you will be asked to identify the fighters comprising this squadron. You may choose any combination of up to 6 fighters to complete your squadron.";
                    _calculatedFighter = new CalculatedFighterSquadron();
                    //splash.SplashImage = Image.FromFile("C:\\TestA.png");
                    break;
                case "Flight":
                    splash.Title = "Flight Creation";
                    splash.Description = "A flight is a unit of 24 fighters (equivalent to 4 squadrons). In the following pages, you will be asked to identify the fighters comprising this flight. You may choose any combination of up to 24 fighters to complete your flight.";
                    _calculatedFighter = new CalculatedFighterFlight();
                    //splash.SplashImage = Image.FromFile("C:\\TestA.png");
                    break;
                case "Group":
                    splash.Title = "Group Creation";
                    splash.Description = "A group is a unit of 72 fighters equivalent to 3 flights or 24 squadrons). In the following pages, you will be asked to identify the fighters comprising this group. You may choose any combination of up to 72 fighters to complete your group.";
                    _calculatedFighter = new CalculatedFighterGroup();
                    //splash.SplashImage = Image.FromFile("C:\\TestA.png");
                    break;
            }

            Pages.Add("Page 1", splash);
            Pages.Add("Page 2", new ChooseFighters(_FighterType, _fighterGroup));
            Pages.Add("Page 3", new CalculatedFighter(_FighterType, _fighterGroup, _calculatedFighter), new WizardPageSettings(new WizardButtonSettings("Finish")));
        }

    }

}